package cn.wind.xboot.logic.service.impl;

import cn.wind.xboot.logic.dto.StoreSteelyardDto;
import cn.wind.xboot.logic.entity.StoreSteelyard;
import cn.wind.xboot.logic.dao.StoreSteelyardMapper;
import cn.wind.xboot.logic.service.IStoreSteelyardService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 智能秤 服务实现类
 * </p>
 *
 * @author wind
 * @since 2018-12-21
 */
@Service
public class StoreSteelyardServiceImpl extends ServiceImpl<StoreSteelyardMapper, StoreSteelyard> implements IStoreSteelyardService {

    @Override
    public IPage<StoreSteelyardDto> getStoreSteelyardList(IPage page, Map<String, Object> map) {
        return this.baseMapper.getStoreSteelyardList(page,map);
    }

    @Override
    public StoreSteelyard findByDeviceToken(String deviceToken) {
        return this.baseMapper.findByDeviceToken(deviceToken);
    }
}
